package com.jiayinlending.model;

import android.os.Parcel;
import android.os.Parcelable;

public class ToSignSms implements Parcelable {

    private String cellphone;
    private String type;
    private String timestamp;

    public ToSignSms(String cellphone, String type,String timestamp) {
        this.cellphone = cellphone;
        this.type = type;
        this.timestamp=timestamp;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.cellphone);
        dest.writeString(this.type);
        dest.writeString(this.timestamp);
    }

    protected ToSignSms(Parcel in) {
        this.cellphone = in.readString();
        this.type = in.readString();
        this.timestamp = in.readString();
    }

    public static final Creator<ToSignSms> CREATOR = new Creator<ToSignSms>() {
        @Override
        public ToSignSms createFromParcel(Parcel source) {
            return new ToSignSms(source);
        }

        @Override
        public ToSignSms[] newArray(int size) {
            return new ToSignSms[size];
        }
    };
}
